package com.lh1010.s3.third;

import com.zielsmart.web.basic.vo.ResultVo;
import com.zielsmart.web.basic.vo.TokenUserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "uums", url = "${remote.uums.remote.url}")
public interface IUserService {

    /**
     * 获取当前用户信息
     * @param token
     * @return
     */
    @PostMapping(value = "/um-user/current-user", consumes = MediaType.APPLICATION_JSON_VALUE)
    ResultVo<TokenUserInfo> currentUser();
}
